/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.pretorius.question3.crp.model.impl;

import java.math.BigDecimal;
import za.ac.cput.pretorius.question3.crp.model.BonusInterest;

/**
 *
 * @author griddy
 */
public class SavingsAccount extends Account {
    
    private BonusInterest bonusInterest = new BonusChequeInterest();

    public SavingsAccount(BigDecimal balance) {
        super(balance);
        super.setAccountType("Savings");
    }
    
    public SavingsAccount() {
        super();
        super.setAccountType("Savings");
    }
    
     public BigDecimal calculateBonusInterest() {
        return bonusInterest.calculateBonsInterest(super.getBalance());
    }

 
 
}
